#!/bin/bash
# 传参检测
##################################################################
a=`cat /etc/hosts |grep -v ^$|egrep -v "127.0.0.1|localhost"|awk  '{print $2}'`
for i in $a
    do
       scp /root/ceph-cluster/*.keyring root@${i}:/etc/ceph/
 done